package cho114366.basic;

public class J03_22_AmbiguousIF {

	public static void main(String[] args) {
		//애매모호한 IF문
//		int number = 111;
//		if(number%2==0)
//			System.out.println(number+"is even.");
//			System.out.println(number+"is odd.");
//		
		int x =3;
		int y =4;
		int z =5;
		
		if(x>2){
			if(x>2){
				if(y>2)
					z=x+y;
				System.out.println("z is"+x);}
				else
				System.out.println("x is"+z);}
					if(x>2){
						if(y>2){
							z = x+y;System.out.println("z is"+z);}
	}else System.out.println("z is"+z);
	}
}

			
		

	


